package top.mccat.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.mccat.common.annotation.Excel;
import top.mccat.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 employee_excellent
 * 
 * @author ruoyi
 * @date 2022-03-30
 */
public class EmployeeExcellent extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 优秀员工表主键 */
    private Long id;

    /** 用户id，对应sys_user表的user_id */
    @Excel(name = "用户id")
    private Long userId;

    /** 优秀月份 */
    @JsonFormat(pattern = "yyyy-MM")
    @Excel(name = "优秀月份", width = 30, dateFormat = "yyyy-MM")
    private Date excellentDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setExcellentDate(Date excellentDate) 
    {
        this.excellentDate = excellentDate;
    }

    public Date getExcellentDate() 
    {
        return excellentDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("excellentDate", getExcellentDate())
            .toString();
    }
}
